#include "log.h"

void Log::init("name"){
	log4cpp::OstreamAppender* osAppender = new log4cpp::OstreamAppender("osAppender", &cout);
	osAppender->setLayout(new log4cpp::BasicLayout());
	category = log4cpp::Category::getInstance(name);
	category.addAppender(osAppender);
	category.setPriority(log4cpp::Priority::DEBUG);
}
void log::info(const char * const str){
	category.info(str);
}
void log::notice(const char * const str){
	category.notice(str);
}
void log::warn(const char* const str){
	category.warn(str);
}
void log::debug(const char* const str){
	category.debug(str);
}
void log::error(const char* const str){
	category.error(str);
}

